package org.com.FeignClient;

import Entity.User;
import org.com.FeignFallback.UserFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "Service-User",fallback = UserFallback.class)
public interface UserFeign {
    @GetMapping("/user/list")
    List<User> list();
}
